//
//  CAOrderDetailGoodsHeaderView.m
//  LNH
//
//  Created by twentylx on 2018/2/23.
//  Copyright © 2018年 twentylx. All rights reserved.
//

#import "CAOrderDetailGoodsHeaderView.h"

@implementation CAOrderDetailGoodsHeaderView

/**
 为视图绑定 viewModel
 
 @param viewModel 要绑定的ViewModel
 @param params 额外参数
 */
- (void)bindViewModel:(id <LMViewProtocol>)viewModel withParams:(NSDictionary *)params {
    
}

/**
 初始化额外数据
 */
- (void)lm_initializeForView {
    
}

/**
 初始化视图
 */
- (void)lm_createViewForView {
    [self setNeedsUpdateConstraints];
    
    [self addSubview:self.goodsTitleLabel];
}

#pragma mark layout
- (void)updateConstraints {
    [super updateConstraints];
    
    [_goodsTitleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self).offset(20);
        make.top.equalTo(self).offset(10);
    }];
}

#pragma mark get & set
- (UILabel *)goodsTitleLabel {
    if (!_goodsTitleLabel) {
        _goodsTitleLabel = [UILabel new];
        _goodsTitleLabel.text = @"商品信息";
        _goodsTitleLabel.textColor = RGBCOLOR(62, 58, 57);
        _goodsTitleLabel.font = [UIFont systemFontOfSize:16];
    }
    return _goodsTitleLabel;
}

@end
